package service.impl;

import java.util.List;

import dao.OrderDao;
import dao.impl.OrderDaoImpl;
import pojo.Order;
import service.OrderManager;

public class OrderManagerImpl implements OrderManager{

	private OrderDao dao;
	
	public  OrderManagerImpl(){
		dao = new OrderDaoImpl();
	}
	
	@Override
	public int buy(List<Order> orders) {
		return dao.addAllOrders(orders);
	}

}
